package xcu.lxj.nettychat.chat.domain.vo.request;


import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import xcu.lxj.nettychat.common.domain.vo.request.CursorPageBaseReq;


//消息列表请求

@Getter
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(name ="消息列表请求" )
public class ChatMessagePageReq extends CursorPageBaseReq {

    @NotNull
    @Schema(description = "会话id",requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonProperty("roomId")
    private Long roomId ;


    @JsonProperty("roomId")
    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

}

